<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<link rel="stylesheet" href="__CSSB__/binmesdeal.css">
	<link rel="stylesheet" href="__CSSB__/apa.css">
</head>
<body style="display: block;margin: 0;">
	<!--  O组 1903010241 -->
	<div class="top">
	 <div class="top1">
	 </div>
	<div>
	 <li>
	  {if (session('uNickB'))!=''}
	   <div class="top1">
		<img  class="top2" src="__IMGB__/mv.jpg">
		<div>O论坛后台管理</div>
	   </div>
	  {/if}
	 </li>
	 <li><a href="{:url('deal/mesdeal',['sid' => 0])}">帖子管理</a></li>
	 <li><a href="{:url('deal/userdeal')}">用户管理</a></li>
			  <li><a href="{:url('deal/secdeal')}">板块管理</a></li>
			  <li><a href="{:url('bindeal/binSecDeal')}">回收站管理</a></li>
			  <li><a href="{:url('advdeal/advdeal')}">广告管理</a></li>
			  <li><a href="{:url('advdeal/boxdeal')}">轮播图管理</a></li>
			  <li><a href="{:url('admin/apa')}">修改密码</a></li>
			  <li><a href="{:url('admin/alogout')}">注销</a></li>
			  <li><a href="{:url('O_forum/index/index')}">论坛前台</a></li>
	 <li style="color: #FFFFFF80;">欢迎您： {:session('uNickB')}</li>
	</div>
	</div>
	<!-- O组 1903010241  -->
	<div id="binmesdeal">
		<div id="nav2" class="title">
			<li>选择回收站：</li>
			<li id="a" onclick="a()">版块回收站管理</li>
			<li id="b" onclick="b()" style="color: rgb(39, 51, 214);">帖子回收站管理</li>
			<li id="c" onclick="c()">回复回收站管理</li>
		</div>
		<div id="div2">
			<div  class="title-1">
				<li>选择版块：</li>
				{volist name='sec' id='secRow'}
				<li><a href="{:url('bindeal/binmesdeal',['sid' => $secRow.sid,'sname' => $secRow.sname ])}">{$secRow.sname}</a></li>
				{/volist}
			</div>
            <div class="title-2">当前版块：{$sname}</div>
			<!-- 帖子回收站管理数据加载 -->
			<div class="content">
				<div>
					<div class="content-title">
						<li>序号</li>
						<li>标题</li>
						<li>发布时间</li>
						<li>作者</li>
						<li>进入回收站时间</li>
						<li>彻底删除</li>
						<li>放入回收站原因</li>
					</div>
                    {volist name='mesc' id='mesCheck' key='k'}					
					<div class="content-1">
						<li>{$k}</li>
						<li>{$mesCheck.mtitle}</li>
						<li>{$mesCheck.mcreateat}</li>
						<li>{$mesCheck.munick}</li>
						<li>{$mesCheck.mdelat}</li>
                        <!-- 条件判断，判断帖子是主动进入回收站还是被动 -->
                        <!-- 当mes帖子表的sbin为1且mbin为0时为主动删除 -->
                        {if $mesCheck.sbin == 1 && $mesCheck.mbin == 0}
                        <li><a href="{:url('bindeal/binMesBack',['mid' => $mesCheck.mid])}">还原</a> | <a href="{:url('bindeal/binMesDel',['mid' => $mesCheck.mid])}">彻底删除</a></li>
						<li>删除帖子</li>
                        {else /}
                        <li><a href="{:url('bindeal/binMesDel',['mid' => $mesCheck.mid])}">彻底删除</a></li>
						<li>删除版块</li>
                        {/if}
					</div>	
                    {/volist}
				</div>
			</div>
		</div>
		<div id="div3" style="display: none;">
			<div id="nav3" class="border">
				<li>选择版块：</li>
				{volist name='sec' id='secRow'}
				<li class="title-1"><a style="color: rgb(24, 85, 121);" href="{:url('bindeal/binresdeal',['sid' => $secRow.sid,'sname' => $secRow.sname ])}">{$secRow.sname}</a></li>
				{/volist}
			</div>
			<!-- <div class="bankuai border">当前版块</div> -->
		</div>
		
	</div>
</body>
	<!-- JS单击事件，触发后显示隐藏的盒子 -->
	<script type="text/javascript">
		function a(){
			// document.getElementById("div1").style.display = "block";
			document.getElementById("a").style.color = "rgb(39, 51, 214)"; 
			// document.getElementById("div2").style.display = "none"; 
			document.getElementById("b").style.color = "black"; 
			// document.getElementById("div3").style.display = "none"; 
			document.getElementById("c").style.color = "black"; 
            window.location.href="{:url('Bindeal/binSecDeal')}";
		}
		function b(){
			document.getElementById("div1").style.display = "none";
			document.getElementById("a").style.color = "black"; 
			document.getElementById("div2").style.display = "block"; 
			document.getElementById("b").style.color = "rgb(39, 51, 214)"; 
			document.getElementById("div3").style.display = "none";
			document.getElementById("c").style.color = "black"; 
		}
		function c(){
			// document.getElementById("div1").style.display = "none";
			document.getElementById("a").style.color = "black"; 
			document.getElementById("div2").style.display = "none"; 
			document.getElementById("b").style.color = "black"; 
			document.getElementById("div3").style.display = "block";
			document.getElementById("c").style.color = "rgb(39, 51, 214)";
            // window.location.href="{:url('Bindeal/binSecDeal')}";
		}
	</script>
</html>